package com.nerve.cloudoffice.web.intercept;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * @project: cloudOffice
 * @file: PermissInterceptor.java
 * @package: com.nerve.cloudoffice.web.intercept
 * @description:
 *	权限拦截器
 * @author: 集成显卡	1053214511@qq.com
				IBM GDC, zengxm@cn.ibm.com
 * @date&time: 2013-8-4
 * @change log:
 */
@SuppressWarnings("serial")
public class PermissInterceptor extends AbstractInterceptor {

	@Override
	public String intercept(ActionInvocation arg0) throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest();
		System.out.println("PermissInterceptor-->" + request.getRequestURI());
		
		return arg0.invoke();
	}

}